import request from "@/utils/request"
//获取已投递列表
export function registration(data) {
	return request('/application/registration/list', {
		method: 'get',
		params:data
	})
}
// 获取邀请投递列表
// 获取收藏列表
export function collection(data) {
	return request('/application/collection/list', {
		method: 'get',
		data:data
	})
}
// 收藏简历
export function collections(data) {
	return request('/application/collection', {
		method: 'post',
		data:data
	})
}
// 修改密码接口
export function updatePassword(data) {
	return request('/application/user/updatePassword', {
		method: 'post',
		data:data
	})
}

// 获取个人简历接口
export function getResume(data) {
	return request('/application/resume/my', {
		method: 'get',
		data:data
	})
}
// 修改个人简历接口
export function editResume(data) {
	// uni.setStorageSync("myResume",data)
	// uni.navigateBack()
	return request('/application/resume/my', {
		method: 'post',
		data:data
	})
}
// 修改个人简历接口
export function editResumes(data) {
	return request('/application/resume/my', {
		method: 'post',
		data:data
	})
}
// 下载简历接口
export function exportResume() {
	return request('/application/resume/exportResume', {
		method: 'get',
	})
}

// 上传文件解析
export function parserResume(data) {
	return request('/application/resume/parserResume', {
		method: 'post',
		data:data
	})
}
// 投递进度
export function getlistRegistration(data) {
	return request('/application/registration/list', {
		method: 'get',
		params: data,
		
	})
}
// 投递信息 投递简历
export function registrations(data) {
	return request('/application/registration', {
		method: 'post',
		data:data
	})
}
// 招聘职位
export function positionList(params) {
    return request({
        url: "/application/position/list",
        method: "get",
        params: params
    })
}
// 招聘职位详情
export function getposition(data) {
	return request('/application/position/'+data, {
		method: 'get',
	})
}

// 修改职位信息
export function editRegistration(data) {
	return request('/application/registration', {
		method: 'put',
		data: data,
		
	})
}
// 投递日志信息
export function registrationLog(params) {
	return request('/application/registrationLog/list', {
		method: 'get',
		params:params
	})
}

// 查询公司详细信息
export function getDetailTenant(params) {
	return request('/application/tenant/', {
		method: 'get',
		params: params
	})
}


//获取公司公告列表
export function companyAnnouncement(data) {
	return request('/application/companyAnnouncement/list', {
		method: 'get',
		params: data,
	})
}
//获取公司公告详情
export function companyAnnouncementDetail(data) {
	return request('/application/companyAnnouncement/'+data, {
		method: 'get',
	})
}


// 获取应聘报名表详细信息
export function formTemplate(data) {
	return request('/application/formTemplate/'+data, {
		method: 'get',
	})
}
// 添加报名表信息
export function formAdd(data) {
	return request('/application/form', {
		method: 'post',
		data:data
	})
}
export function formput(data) {
	return request('/application/form', {
		method: 'put',
		data:data
	})
}
// 修改绑定报名表接口
export function formTemplatepadd(data) {
	return request('/application/registration', {
		method: 'post',
		data:data
	})
}
// 修改绑定报名表接口
export function formTemplateput(data) {
	return request('/application/registration', {
		method: 'put',
		data:data
	})
}

// 保存修改报名表信息
export function formDetail(data) {
	return request('/application/form/'+data, {
		method: 'get',
	})
}
